import { request } from '../utils';

export async function logout(params) {
  return request('/user/logout', {
    method: 'get',
    data: params,
  });
}

export async function userInfo() {
  return request('/user', {  method: 'get' });
}

export async function menu(params) {
  return request('/user/menu', {
    method: 'get'
  });
}

export async function users() {
  return request('/users', {method: 'get'});
}
